import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import VuePreview from 'vue-preview'
import VueLazyload from 'vue-lazyload'
Vue.use(VuePreview)
Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: '/static/images/error.jpg',
  loading: '/static/images/loading.gif',
  attempt: 1
})
// Element-UI
Vue.use(ElementUI)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: h => h(App)
})
